#coding=utf-8
from uliweb.orm import *

class Subversion(Model):
    """
    svn配置
    """
    svn_name = Field(str, verbose_name='仓库名称', max_length=50, unique=True, index=True )
    svn_username = Field(str, verbose_name='仓库用户名', max_length=100)
    svn_passwd = Field(str, verbose_name='仓库密码', max_length=128)
    svn_url = Field(str, verbose_name='仓库地址', max_length=200)
    svn_comment = Field(str, verbose_name='说明', max_length=500)
    svn_webdir_server = Field(str, verbose_name='服务端svn web目录' , max_length=200)
    svn_webdir_client = Field(str, verbose_name='客户端端svn web目录' , max_length=200)
    svn_webip_client = Field(str, verbose_name='客户端端svn web的ip' , max_length=300)
    rsync_module = Field(str, verbose_name='rsync同步模块名', max_length=100)
    rsync_ignore_dir = Field(str, verbose_name='忽略目录', max_length=300)
    users = ManyToMany('user', verbose_name='关联用户表', collection_name='subversions')

